package org.duiduo.service;

import org.duiduo.pojo.TbUser;
import org.duiduo.result.ResultData;
import org.springframework.mail.SimpleMailMessage;

import java.util.List;

/**
 * Service接口
 * 
 * @author 夜泷noga
 */
public interface TbUserService {

	List<TbUser> getList(String username) throws Exception;

	void delete(Integer id);

	ResultData addOrEdit(TbUser user);

	TbUser findById(Integer id);

    TbUser getByUsernameAndPassword(String username, String password);

    void sendMail(SimpleMailMessage message);
}
